package com.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shop.entity.UmsAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author lpx610
 * @since 2023-10-29
 */
public interface UmsAdminService extends IService<UmsAdmin> {

    IPage<UmsAdmin> list(Integer pageNo, Integer pageSize, String username, Integer order);

    Boolean add(String username, String password, String phone, String email, Integer gender, MultipartFile file);

    Boolean update(String id, String username, String phone, String email, Integer gender, MultipartFile file);

    Boolean delete(String id, Boolean active);
}
